<% for column in Borrowing.content_columns %>
    <% if ['state'].include?(column.name) %>
      <b><%= column.human_name %>:</b> <%=h format_state(@borrowing.send(column.name)) %>
    <% else %>
    <p>
      <b><%= column.human_name %>:</b> <%=h @borrowing.send(column.name) %>
    </p>
    <% end %>
<% end %>

<%= link_to 'Edit', :action => 'edit', :id => @borrowing %> |
<%= link_to 'Back', :action => 'list' %>
